package com.qq.arr;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        Mylist mylist = new Mylist();
        mylist.add("张三");
        mylist.add("李四");
        mylist.add("王五");

        MyIterator iterator = mylist.getIterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }

    }
}
